<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        #id1{
            border:1px black solid;
            width: 602px;
            height: 42px;
        }
        #id1>div{
            float: left;
            margin:5px 0px 0 5px;
            padding:6px 12px 6px 10px;
            font-size: 12px;
            background-color: gold;
            height: 20px;
            font-family: "微软雅黑";
        }
        #id1>#id2{
            background-color: white;
        }
        #id1>#id3{
            margin-left: 60px;
        }
    </style>
</head>
<body>
    <div id="id1">
        <div id="id3">上一页</div>
        <div>1</div>
        <div>2</div>
        <div>3</div>
        <div>4</div>
        <div id="id2">...</div>
        <div>17</div>
        <div>18</div>
        <div>19</div>
        <div>20</div>
        <div>下一页</div>
    </div>
</body>
</html>